package zk.tool.component;

import javafx.scene.control.TreeItem;
import zk.tool.model.TreeItemData;

public class NodeItem extends TreeItem<TreeItemData> {

    public NodeItem(TreeItemData value) {
        super(value);
    }

    @Override
    public boolean isLeaf() {
        return getValue().isChildrenLoaded() && getChildren().isEmpty();
    }
}
